import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;


public class Janela extends JFrame {


	public Janela() {
		initialize();
	}

	private void initialize() {
		/* Cria e modifica os aspectos do this inteiro. */
		this.setBounds(100, 100, 800, 500);
		this.setResizable(false);
		this.setVisible(true);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.getContentPane().add(new CharSelectPanel(), BorderLayout.CENTER);

	}
	
	public void trocarPanel(JPanel panel){
	
		this.getContentPane().repaint();
		this.getContentPane().add(new CharSelectPanel(), BorderLayout.CENTER);
	}
}
